package com.lcn.consumer.lcnconsumer.controller;

import com.lcn.consumer.lcnconsumer.bean.Depart;
import com.lcn.consumer.lcnconsumer.service.DepartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("/consumer/depart")
@RestController
public class DepartController {


    @Autowired
    private DepartService service;

    @PostMapping("/save")
    public boolean saveHandler(@RequestBody Depart depart) {
        return service.saveDepart(depart);
    }


}
